
GCC ?= gcc

all: picture crc32

picture:
	@$(GCC) -o out.$@ $@.cpp \
	-I../ \
	-I../../common \
	-I../../third \
	-I../../third/libs/include \
	-L../../third/libs/lib \
	../util_picture.cpp \
	../util_bmp.cpp \
	../../common/image.cpp \
	../../third/lib_jpeg_adapt.c \
	../../third/lib_png_adapt.c \
	-lpng -ljpeg -lz -lm -static -lstdc++

crc32:
	@$(GCC) -o out.$@ $@.cpp \
	-I../ \
	../util_crc32.cpp \
	-lstdc++

clean:
	@rm -rf out*
